package elijah.base.dialog.api;

import com.lxj.xpopup.core.BasePopupView;

public interface OnActionCallback<I> {
    void onSubmit(I value, BasePopupView dialog);

    void onSuccess(I value, BasePopupView dialog);

    void onFailed(I value, BasePopupView dialog);

    abstract class Impl<I> implements OnActionCallback<I> {
        @Override
        public void onSubmit(I value, BasePopupView dialog) {

        }

        @Override
        public void onSuccess(I value, BasePopupView dialog) {

        }

        @Override
        public void onFailed(I value, BasePopupView dialog) {

        }


    }

}
